<?php
  require_once('../includes.php');
  $membership = New Membership();
  $membership->confirm_admin();
  $success = isset($_GET['success']) ? $_GET['success'] : false;

  include('../header.php');
?>
<div id='agenda'>

<?php if ($success) : ?>
<div id='message'>
  <h3>Toevoegen Geslaagd!</h3>
</div>
<?php endif; ?>

<div class="block">
  <h2 class="red">Toevoegen</h2>
  <div id="info">
    <?php echo Website::create_link("admin/","Administratie", "right"); ?>
    <?php echo Website::create_link("user/overzicht.php","Ledenoverzicht bekijken", "users right"); ?>

    <form action="action.php" method="post">
      <ul>
        <li>
        <label for='Voornaam'>Voornaam</label>
        <input type='text' name='voornaam'>
        </li>
        <li>
          <label for='Achternaam'>Achternaam</label>
          <input type='text' name='achternaam'>
        </li>
        <li>
          <label for='E-mail'>E-mail</label>
          <input type='text' name='email'>
        </li>
      </ul>

      <input type='hidden' name='action' value='add'>
      <input type='submit' id='submitButton' value='Toevoegen'>
    </form>

  </div>
</div>
</div>
<?php include('../footer.php'); ?>